<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
 <%@ taglib prefix="s" uri="/struts-tags"%>
 <%@ taglib prefix="sx"  uri="/struts-dojo-tags"%>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
     <head>
 
         <title>Register Page</title>
          <sx:head/> 
          <style type="text/css">
    		@import "css/table.css";
            </style>
            <script type="text/javascript" src="js/jquery.js"></script>
			<script type="text/javascript" src="js/caroil.js"></script>
     </head>
 
    <body>
        <s:form action="CarOilAction!edit.action" theme="simple">
        燃油记录|<a href="CarOilAction!findall.action">燃油记录列表</a>
     
            <table>
              <tr>
                    <td style="text-align:right">
                     
                    </td>
                    <td>
                    <s:hidden name="caroil.id" label="记录ID" />
                        <sx:datetimepicker label="日期" name="caroil.mdate" displayFormat="yyyy-MM-dd"/> 
                    </td>
                </tr>
             <tr>
                    <td style="text-align:right">
                        车牌号
                    </td>
                    <td>
						<s:select  label="选择车辆"  list="#session.car_list" name="caroil.carId" listKey="id" listValue="num"  headerValue="caroil.carId" />
                        
                    </td>
                </tr>
                
                <tr>
                    <td style="text-align:right">
                       单价
                    </td>
                    <td>
                       <s:textfield name="caroil.price" label="单价" />
                    </td>
                </tr>
                <tr>
                   <td style="text-align:right">
                       金额
                    </td>
                    <td>
                        <s:textfield name="caroil.sum" label="金额" />元
                    </td>
                </tr>
                
                   <tr>
                   <td style="text-align:right">
          数量         
                    </td>
                    <td>
                        <s:textfield name="caroil.amount" label="数量  " readonly="true"/>升
                    </td>
                </tr>
                          <tr>
                   <td style="text-align:right">
          负责人              
                    </td>
                    <td>
                        <s:textfield name="caroil.person" label="负责人 " />
                    </td>
                </tr>
               <tr>
                   <td style="text-align:right">
               备注            
                    </td>
                    <td>
                        <s:textarea name="caroil.extattr1" label="备注 "  cssStyle="width:200px;height:100px;" />
 						 <s:hidden name="caroil.extattr2" label="所属公司ID" />                   
                    </td>
                </tr>       
                <tr>
                    <td style="text-align:right">
                        <s:submit value="保存"  />
                    </td>
                    <td style="text-align:left">
                        <s:reset value="取消"/>
                    </td>
                    
                    
                </tr>
            </table>
        </s:form>
        <s:fielderror cssStyle="color:red"/>
    </body>
</html>
